package com.zzxy.springSun.controller;

import com.zzxy.springSun.service.ITeacherService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RestController
public class TeacherController {
    private ITeacherService teacherService;

    public ITeacherService getTeacherService() {
        return teacherService;
    }

    public void setTeacherService(ITeacherService teacherService) {
        this.teacherService = teacherService;
    }

    public  void registerTeacher(){
    //service
        teacherService.reqisterTeacher();
}

    public void register() {

    }
}
